<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>单向绑定</title>
		<script type="text/javascript" src="js/knockout-3.4.0.js" ></script>
	</head>
	<body>
		<h1>使用model对象</h1>
		<div id="_bindDemo">
			姓名:<p data-bind="text: name"></p>
		</div>
	</body>
	<script type="text/javascript">
		var model = function(){
			var self = this;
			self.name = 'lee';
		};
		ko.applyBindings(model, document.getElementById('_bindDemo'));
	</script>
</html>
